<?php
//*******************************************************************************
// システムＩＤ　：Reclip
// システム名称　：Reclip
// モジュール：Reclip_Plugin_Authenticate
// モジュール名称：一覧・検索, 詳細表示
// 機能概要　　　：Authenticate 
//
// 改訂履歴　　　：
//*******************************************************************************
class Joblib_Authenticate extends Zend_Controller_Plugin_Abstract
{
    public function routeStartup(Zend_Controller_Request_Abstract $request)
    {
      
    }
 
    public function routeShutdown(Zend_Controller_Request_Abstract $request)
    {
    
    }
 
    public function dispatchLoopStartup(
        Zend_Controller_Request_Abstract $request)
    {
     
    }
 
	public function preDispatch(Zend_Controller_Request_Abstract $request)
    {
		/*$moduleName         = $this->getRequest()->getModuleName();
		$controllerName     = $this->getRequest()->getControllerName();
		$actionName         = $this->getRequest()->getActionName();
		
		$lang   = $request->getParam('lang','');
		$userId = $request->getParam('userId');

		if ( $controllerName == "bookchoice" ||
		     $controllerName == "setting" ||
		     $controllerName == "addclip" ||
		     $controllerName == "bookedit" || 
		     $controllerName == "recommenduser" ||
		    ($controllerName == "mypage" && $userId == null)) {         

			$staffSession = new Zend_Session_Namespace('loginSession');
			$staffArr = $staffSession->user_info;		
			if (!isset($staffArr) || null == $staffArr) {
				if ($lang == 'default' || $lang == 'en') {
					header("Location:" . '/default/top');
				}
				if ($lang == 'jp') {
					header("Location:" . '/jp/top');
				}
			}          	
		}	*/	
	}
 
    public function postDispatch(Zend_Controller_Request_Abstract $request)
    {
      
    }
 
    public function dispatchLoopShutdown()
    {
    
    }
}
?>